Fix broken web commands by updating to new Anthropic APIs#93
Open
drewvolz wants to merge 2 commits intosimonw:mainfrom
Open
Fix broken web commands by updating to new Anthropic APIs#93drewvolz wants to merge 2 commits intosimonw:mainfrom
drewvolz wants to merge 2 commits intosimonw:mainfrom
Conversation
The web listing and session fetch commands broke because Anthropic
changed two undocumented APIs:
1. GET /v1/sessions now requires an anthropic-beta header
2. GET /v1/session_ingress/session/{id} was replaced by
GET /v1/code/sessions/{id}/teleport-events (paginated)
The teleport-events endpoint returns paginated events whose payload field
contains the logline entry directly, replacing the old single-shot
session_ingress response.
Falls back to session_ingress on 404 for the migration period.
This reverts commit 316fd09.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #77
Anthropic changed two undocumented APIs that the
webcommands relied on:Listing sessions (
GET /v1/sessions) now requires ananthropic-beta: ccr-byoc-2025-07-29header. Without it, the endpoint rejects requests.Fetching session transcript via (
GET /v1/session_ingress/session/{id}) was retired entirely. It has been replaced by a new paginated endpoint:GET /v1/code/sessions/{id}/teleport-events.The
getTeleportEvents()function and the beta header usage are reverse engineered from Claude Code's--teleportmechanism.